<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/manage/common/taglibs.jsp" %>
<script type="text/javascript">
    $(function () {

        $.acooly.framework.registerKeydown('manage_equipentAllN_from', 'manage_equipentAllN_datagrid');
    });
    function equipentAllN_t(value,row) {
        if(value){
            return value;
        }else {
            return '√';
        }
        if(value=='true'){
            return '<i class="fa fa-check fa-lg fa-fw fa-col" style="color: green"></i>'
        }else{
            return '<i class="fa fa-times fa-lg fa-fw fa-col" style="color: red"></i>'
        }

    }
    function electrictyMeter_t1n(value,row) {
        $.acooly.framework.show('/manage/demo/report/listAll.html?eId=4&createTime='+value,1300,500);
    }

    function equipentAllZ_dn(value,row) {
        return '   <a onclick=" electrictyMeter_t1n(\''+row.createTime+'\') " href="#" title="查看"><i class="fa fa-file-o fa-lg fa-fw fa-col"></i></a>';
    }
</script>

<div class="easyui-layout" data-options="fit : true,border : false">
    <!-- 查询条件 -->
    <div data-options="region:'north',border:false" style="padding:5px; overflow: hidden;" align="left">
        <form id="manage_equipentAllN_from" onsubmit="return false">
            <table class="tableForm" width="100%">
                <tr>
                    <td align="left">
                        <div>
                             <span class="div_outter_text">
                            <input  name="begin" type="text" onFocus="WdatePicker({readOnly:false,dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="line-height:28px;
                                   border-radius: 5px; border:1px #95B8E7 solid; width:146px; vertical-align: middle;" placeholder="开始时间" prompt="限办时间(开始)"/>
                        </span>
                            <span class="div_outter_text">
                            <input  name="end" type="text" onFocus="WdatePicker({readOnly:false,dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="line-height: 28px;
                                border-radius: 5px; border:1px #95B8E7 solid; width:146px; vertical-align: middle;" placeholder="结束时间" prompt="限办时间(结束)" />
                        </span>
                            <a href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:false"
                               onclick="$.acooly.framework.search('manage_equipentAllN_from','manage_equipentAllN_datagrid');">
                                <i class="fa fa-search fa-lg fa-fw fa-col"></i>查询</a>
                            <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-excel" data-options="plain:false"
                               onclick="$.lora.common.commonExportReport('manage_equipentAllN_datagrid','全部设备状态年报表')">导出</a>

                        </div>
                    </td>
                </tr>
            </table>
        </form>
    </div>

    <!-- 列表和工具栏 -->
    <div data-options="region:'center',border:false">
        <table id="manage_equipentAllN_datagrid" class="easyui-datagrid" url="/manage/demo/report/equipentAll.html?type=4" toolbar="#manage_equipentAllN_toolbar" fit="true" border="false" fitColumns="false"
               checkOnSelect="true" selectOnCheck="true" singleSelect="true">
            <thead>
            <tr>
                <th field="rowActions" data-options="formatter:function(value, row, index){return equipentAllZ_dn(value,row)}">动作</th>
                <th align="center" field="createTime"  width="100">日期</th>
                <th align="center" field="dly" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }" >市电输入</th>
                <th align="center" field="di3" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }">发电机输入</th>
                <th align="center" field="ups" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }">UPS输出</th>
                <th align="center" field="jigui" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }">机柜UPS电源</th>
                <th align="center" field="temperature" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }">环境温度</th>
                <th align="center" field="humidity" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }">环境湿度</th>
                <th align="center" field="airconditioningrunstate1" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }">空调1</th>
                <th align="center" field="airconditioningrunstate2" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }">空调2</th>
                <th align="center" field="xingfeng" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }">新风</th>
                <th align="center" field="yangan" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }">消防</th>
                <th align="center" field="hongwai" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }">红外人体</th>
                <th align="center" field="menci" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }">门磁</th>
                <th align="center" field="sxt" data-options="formatter:function(value, row, index){ return equipentAllN_t(value,row) }">视频</th>
            </tr>
            </thead>
        </table>

<%--
        <div id="manage_equipentAllN_toolbar">
            <a href="#" class="easyui-linkbutton" iconCls="icon-excel" plain="true"
               onclick="$.lora.common.commonExportReport('manage_equipentAllN_datagrid','全部设备状态年报表')">导出</a>
        </div>--%>
    </div>

</div>